<?php

namespace Trawind\Extension\Models\Custom;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;
use Trawind\Basics\Enums\BusinessType;
use Trawind\Extension\Traits\CustomData;

/**
 * Class ViewField.
 *
 * @package namespace Trawind\Extension\Models\Custom;
 */
class ViewField extends Model implements Transformable
{

    use TransformableTrait,CustomData;

    protected $table = 'custom_view_fields';

    protected $connection = 'mysql';

    protected $dateFormat = 'U';

    public $incrementing = false;

    protected $guarded = ['created_at', 'updated_at'];

    public $businessType = BusinessType::EXTENSION_CUSTOM_VIEW_FIELD;
}
